﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SistemaLogistica.Windows.Forms.Almacen.Reportes
{
    public partial class CwfBienes : UserControl
    {
        public CwfBienes()
        {
            InitializeComponent();
        }

        private void btnBuscar_Click(object sender, EventArgs e)
        {
            if (!this.chkTodos.Checked)
            {
                this.reporteBienesTableAdapter.Fill(this.sistemaLogisticaDS.ReporteBienes, txtBuscar.Text);
            }
            else
            {
                this.reporteBienesTableAdapter.Fill(this.sistemaLogisticaDS.ReporteBienes, "%");
            }

            this.rpvBienes.RefreshReport();
        }
    }
}
